# This file contains the fastlane.tools configuration
# You can find the documentation at https://docs.fastlane.tools
#
# For a list of all available actions, check out
#
#     https://docs.fastlane.tools/actions
#
# For a list of all available plugins, check out
#
#     https://docs.fastlane.tools/plugins/available-plugins
#

# Uncomment the line if you want fastlane to automatically update itself
# update_fastlane

default_platform(:ios)

platform :ios do
  desc "发布蒲公英"
  lane :beta do
    # add actions here: https://docs.fastlane.tools/actions
	build_app(export_method: "ad-hoc")
  	pgyer(api_key: "736cff78c117f36894c905e2fb9aa59b", user_key: "b67ffda6e496fdf57719f6925cd8636f", password: "123", install_type: "2")
	#pgyer(api_key: "7f15xxxxxxxxxxxxxxxxxx141", user_key: "4a5bcxxxxxxxxxxxxxxx3a9e", update_description: "update by fastlane") #pgy更新版本
  end


    lane :release do
    # add actions here: https://docs.fastlane.tools/actions
	build_app(export_method: "app-store")
	upload_to_app_store
  	
  end
end
